package com.ningxia.water.enums;

/**
 * @author huangzhen
 * @create 2021-05-20 17:32
 */
public enum MeterStatusEnum {

    /**
     * code = 0 = 离线
     */
    ERROR(0, "离线"),
    /**
     * code = 1 = 在线
     */
    RUNNING(1, "在线");

    private final Integer code;
    private final String value;

    MeterStatusEnum(Integer code, String value) {
        this.code = code;
        this.value = value;
    }

    public Integer getCode() {
        return code;
    }

    public String getValue() {
        return value;
    }
}
